Is it possible to raise a non integer value to a power?
e.g.
num = 5.2 ^ 3
Is it possible to raise a non integer value to a power?
e.g.
num = 5.2 ^ 3
Yes. But not with '^'.
pow - C++ Reference
- Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
- A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
- The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.
And just to be clear, even using ^ with integers does not perform a power operation. It's the XOR operator!
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"